function GMRP.changeJob( p, c, a )

	if !GMRP.UseLimit( p ) then return end
	
	if tonumber( a[1] ) == nil then return end
	
	local jN = tonumber( a[1] )
	local jGN = team.GetName( jN )

	for k, v in pairs( Jobs ) do
	
		if ( jN == Jobs[k][1] ) then
		
			if ( p:Team() == jN ) then
			
				p:RedNotify( "You are already a "..jGN.."." )
				return
				
			end
			
			if ( Jobs[k][2] == "government" ) && ( !p:HasMoney( Configuration["govjobmoney"] ) ) then
			
				p:RedNotify( "You must have at least $500 to use government jobs." )
				return
				
			end
		
			if ( team.NumPlayers( jN ) < Jobs[k][3] ) then
		
				p:SetTeam( jN )
				p:LoadOut()
				p:GreenNotify( "Job changed to "..jGN.."." )
				
			else
			
				p:RedNotify( "Max "..k.."s reached." )
				
			end	
			
		end

	end
	
end

GMRP.command( "job_change", GMRP.changeJob )